# $Id: PKGBUILD 145169 2011-12-18 22:03:46Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Jan Blazek <appolito@gmail.com>
# Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>

pkgname=gtkimageview
pkgver=1.6.4
pkgrel=3
pkgdesc="Simple image viewer widget for GTK2"
arch=('i686' 'x86_64')
url="http://trac.bjourne.webfactional.com/"
license=('LGPL2.1')
depends=('gtk2')
makedepends=('pkgconfig')
options=('!libtool')
source=("http://trac.bjourne.webfactional.com/attachment/wiki/WikiStart/${pkgname}-${pkgver}.tar.gz?format=raw")
md5sums=('501367b3f50e69a12208dc9c6ad00b18')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr \
              --disable-static
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
  rm -rf "${pkgdir}/usr/share"
}
